<!-- eslint-disable vue/valid-template-root -->
<template></template>
<script lang="ts" setup>
import { onShow } from '@dcloudio/uni-app'

onShow(() => {
  /** 每次小程序从后台进入前台时，判断token是否存在 */
  const token = uni.getStorageSync('accessToken')
  if (!token) {
    uni.reLaunch({ url: '/pages/auth/login?isLogin=1' })
  }
})
</script>
<style>
/* #ifdef APP-PLUS-NVUE */
@import './tmui/scss/nvue.css';
/* #endif */
/* #ifndef APP-PLUS-NVUE */
@import './tmui/scss/noNvue.css';
/* #endif */

/* #ifdef H5 */
body::-webkit-scrollbar,
div::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

body.pages-index-index uni-page-body,
body {
  padding-bottom: 0 !important;
}
text {
  font-family: 'sans-serif';
}
/* #endif */
</style>
